<?php


        //rating lib
        //require_once("./app/lib_staring/rate.php");
        //Include "app/lib_staring/rate.php";
        //Include "app/lib_staring/takerate.php";

	$listeVideo = getRandomizedDisplayedVideos();

        if($listeVideo != null)
        {
            foreach($listeVideo as $video)
            {
                    ?>

                <div class="item">
                    <a
                        title="PATLEGUEN.COM"
                        href="http://www.youtube.com/v/<?php echo $video["LinkToYoutube"]; ?>?autoplay=1&rel=0&enablejsapi=1&playerapiid=ytplayer"
                        rel="#voverlay">
                        <img
                            alt="PATLEGUEN.COM"
                            src="http://i1.ytimg.com/vi/<?php echo  $video["LinkToYoutube"]; ?>/default.jpg"
                            />
                        <?php echo "{$video["Location"]}"; ?>
                        <span></span>
                    </a>
                    
                    <?php //echo rate($video["LinkToYoutube"]);?>
                </div>
<? }  }  ?>